package com.li.mybatisplus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.li.mybatisplus.entity.User;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author liXingaYu
 * @create 2022-03-16 10:34
 */
////障眼法罢了
//@Repository
public interface UserMapper extends BaseMapper<User> {
    List<User> selectByName(String name);

    IPage<User> selectByPageAge(Page<User> page,Integer age);
}
